package entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 权限表
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "权限表")
public class Permission implements Serializable {
    
    @Schema(description = "权限唯一标识（主键）")
    private Integer permissionId;
    //
    @Schema(description = "权限代码（如DATA_ENTRY）")
    private String permissionCode;
    
    @Schema(description = "权限名称（数据录入等）")
    private String permissionName;
    
    @Schema(description = "所属模块（质检/供应商管理等）")
    private String module;
    
    @Schema(description = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime createTime;
    
    @Schema(description = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private LocalDateTime updateTime;
}